package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
* @Author: 鸢一折纸
* @Email: 3498881048@qq.com
* @Date: 2025/09/04 10:56
* @Description: ${Description}
**/


/**
 * 假别基础表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "holiday_type")
public class HolidayType {
    @TableId(value = "holiday_id", type = IdType.INPUT)
    private Integer holidayId;

    @TableField(value = "leave_type")
    private String leaveType;

    @TableField(value = "leave_length")
    private BigDecimal leaveLength;

    @TableField(value = "range_application")
    private String rangeApplication;

    @TableField(value = "reason")
    private String reason;

    @TableField(value = "is_active")
    private Object isActive;

    @TableField(value = "submit_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date submitAt;

    @TableField(value = "updated_at")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;

    @TableField(value = "emp_id")
    private Integer empId;
}